/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.tnmk.worktime.gui.utils;

import java.util.List;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;

/**
 *
 * @author Administrator
 */
public class JComboUtils {

  public static void setListModel(JComboBox cbo, List list) {
    cbo.setModel(new DefaultComboBoxModel(list.toArray()));
  }

  public static void setModel(JComboBox cbo, Object[] arr) {
    cbo.setModel(new DefaultComboBoxModel(arr));
  }
}
